package annotion.example.hss_fst.baselib;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import annotion.example.hss_fst.baselib.fragments.Dbfragment;
import annotion.example.hss_fst.baselib.fragments.DownloadFragment;
import annotion.example.hss_fst.baselib.fragments.GlideFragments;
import annotion.example.hss_fst.baselib.fragments.MateriaDialogFragment;
import annotion.example.hss_fst.baselib.fragments.MultipleStateFragment;

/**
 * <b>Project:</b> BaseLib<br>
 * <b>Create Date:</b> 2016/4/29<br>
 * <b>Author:</b> huang saisai <br>
 * <b>Description:</b> <br>
 */
public class TestActivity extends AppCompatActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.actvity_test);

        multiplestateview();

    }


    void setGlideFragemnt(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new GlideFragments()).commit();
    }

    void setmateriaDialog(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new MateriaDialogFragment()).commit();
    }

    void download(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new DownloadFragment()).commit();
    }


    void multiplestateview(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new MultipleStateFragment()).commit();
    }

    void db(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new Dbfragment()).commit();

    }
}
